//
//  Products.m
//  freeLance
//
//  Created by s.zalozniy on 3/28/13.
//  Copyright (c) 2013 Mozi Development. All rights reserved.
//

#import "Products.h"

@implementation Products


#pragma mark - Interface methods

-(void) setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.description_ = value;
    } else {
        [super setValue:value forKey:key];
    }
}


#pragma mark - Private methods

-(id) createObjectForProperty:(NSString *)propertyName usingExistingObject:(id)anotherObject {
    if ([propertyName isEqualToString:@"images"]) {
        NSInteger objectCount = [anotherObject count];
        return [NSMutableArray arrayWithCapacity:objectCount];
    }
    return nil;
}


@end
